import * as types from './type'

export default{
	/*首页与其他页导航交替*/
	isback:({commit})=>{
		commit(types.ISBACK);
	},
	isbackfalse:({commit})=>{
		commit(types.ISBACKFALSE);
	},
	suggest:({commit},param)=>{
		commit(types.SUGGEST,param);
	},
	searchlist:({commit},param)=>{
		commit(types.SEARCHLIST,param);
	},
	audioshow:({commit})=>{
		commit(types.AUDIOSHOW);
	},
	
	isplaying:({commit})=>{
		commit(types.ISPLAYING);
	},
	noplaying:({commit})=>{
		commit(types.NOPLAYING);
	},
	dataurl:({commit},param)=>{   //其实是
		commit(types.DATAURL,param);
	},
	
	
	getcollect:({commit},param)=>{
		commit(types.GETCOLLECT,param);
	},
	isshowcollect:({commit})=>{
		commit(types.ISSHOWCOLLECT);
	},
	removethis:({commit},param)=>{
		commit(types.REMOVETHIS,param);
	},
	clear:({commit})=>{
		commit(types.CLEAR);
	},
	/*loading*/
	hideLoading:({commit})=>{
		commit(types.HIDE_LOADING)
	},
	showLoading:({commit})=>{
		commit(types.SHOW_LOADING)
	},
	isshowsearch:({commit})=>{
		commit(types.ISSHOWSEARCH)
	},
	isshowsearchshow:({commit})=>{
		commit(types.ISSHOWSEARCHSHOW)
	},
}
